import random
from  midiutils import midi_constrain

class StandardVelocity( object ):
	def __init__(self , accent , normal , deviation ):
		self.accent = accent
		self.normal = normal 
		self.deviation = deviation
	def AccentVelocity( self ):
		return  midi_constrain( random.gauss( self.accent , self.deviation ) )
	def NormalVelocity( self ):
		return midi_constrain( random.gauss( self.accent , self.deviation ))
